/*
* Copyright (c) 2024 -present FengJinjian ( 751965763@qq.com )

* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements.  See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License.  You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package ${package.Service};

import edu.vital.energy.longevity.domain.dto.${entity?lower_case}.${entity}CreateDTO;
import edu.vital.energy.longevity.domain.dto.${entity?lower_case}.${entity}QueryDTO;
import edu.vital.energy.longevity.domain.dto.${entity?lower_case}.${entity}UpdateDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * ${table.comment!}服务接口
 *
 * @version 1.0.1
 * @author ${author}
 * @date ${date}
 */
<#if kotlin>
interface ${table.serviceName} {
<#else>
public interface ${table.serviceName} {
    /**
     * 分页查询${table.comment!}列表
     */
    Map<String, Object> get${entity}Page(Integer pageNum, Integer pageSize, ${entity}QueryDTO query);
    
    /**
     * 获取${table.comment!}详情
     */
    Object get${entity}ById(Long id);
    
    /**
     * 创建${table.comment!}
     * @return 新创建的${table.comment!}ID
     */
    Long create${entity}(${entity}CreateDTO dto);
    
    /**
     * 更新${table.comment!}
     * @return 更新的记录数
     */
    int update${entity}(Long id, ${entity}UpdateDTO dto);
    
    /**
     * 删除${table.comment!}
     * @return 删除的记录数
     */
    int delete${entity}(Long id);
    
    /**
     * 批量删除${table.comment!}
     * @return 删除的记录数
     */
    int batchDelete${entity}(List<Long> ids);

    
    /**
     * 更新${table.comment!}状态
     */
    void update${entity}Status(Long id, Integer status);
}
</#if>
